home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMHTMLElement.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  6KB  |  188 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMHTMLElement.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMHTMLElement_h__
  6. #define __gen_nsIDOMHTMLElement_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMElement_h__
  10. #include "nsIDOMElement.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMHTMLElement */
  19. #define NS_IDOMHTMLELEMENT_IID_STR "a6cf9085-15b3-11d2-932e-00805f8add32"
  20.  
  21. #define NS_IDOMHTMLELEMENT_IID \
  22.   {0xa6cf9085, 0x15b3, 0x11d2, \
  23.     { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  24.  
  25. class NS_NO_VTABLE nsIDOMHTMLElement : public nsIDOMElement {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLELEMENT_IID)
  29.  
  30.   /**
  31.  * The nsIDOMHTMLElement interface is the primary [X]HTML element
  32.  * interface. It represents a single [X]HTML element in the document
  33.  * tree.
  34.  *
  35.  * For more information on this interface please see
  36.  * http://www.w3.org/TR/DOM-Level-2-HTML/
  37.  *
  38.  * @status FROZEN
  39.  */
  40.   /* attribute DOMString id; */
  41.   NS_IMETHOD GetId(nsAString & aId) = 0;
  42.   NS_IMETHOD SetId(const nsAString & aId) = 0;
  43.  
  44.   /* attribute DOMString title; */
  45.   NS_IMETHOD GetTitle(nsAString & aTitle) = 0;
  46.   NS_IMETHOD SetTitle(const nsAString & aTitle) = 0;
  47.  
  48.   /* attribute DOMString lang; */
  49.   NS_IMETHOD GetLang(nsAString & aLang) = 0;
  50.   NS_IMETHOD SetLang(const nsAString & aLang) = 0;
  51.  
  52.   /* attribute DOMString dir; */
  53.   NS_IMETHOD GetDir(nsAString & aDir) = 0;
  54.   NS_IMETHOD SetDir(const nsAString & aDir) = 0;
  55.  
  56.   /* attribute DOMString className; */
  57.   NS_IMETHOD GetClassName(nsAString & aClassName) = 0;
  58.   NS_IMETHOD SetClassName(const nsAString & aClassName) = 0;
  59.  
  60. };
  61.  
  62. /* Use this macro when declaring classes that implement this interface. */
  63. #define NS_DECL_NSIDOMHTMLELEMENT \
  64.   NS_IMETHOD GetId(nsAString & aId); \
  65.   NS_IMETHOD SetId(const nsAString & aId); \
  66.   NS_IMETHOD GetTitle(nsAString & aTitle); \
  67.   NS_IMETHOD SetTitle(const nsAString & aTitle); \
  68.   NS_IMETHOD GetLang(nsAString & aLang); \
  69.   NS_IMETHOD SetLang(const nsAString & aLang); \
  70.   NS_IMETHOD GetDir(nsAString & aDir); \
  71.   NS_IMETHOD SetDir(const nsAString & aDir); \
  72.   NS_IMETHOD GetClassName(nsAString & aClassName); \
  73.   NS_IMETHOD SetClassName(const nsAString & aClassName); 
  74.  
  75. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  76. #define NS_FORWARD_NSIDOMHTMLELEMENT(_to) \
  77.   NS_IMETHOD GetId(nsAString & aId) { return _to GetId(aId); } \
  78.   NS_IMETHOD SetId(const nsAString & aId) { return _to SetId(aId); } \
  79.   NS_IMETHOD GetTitle(nsAString & aTitle) { return _to GetTitle(aTitle); } \
  80.   NS_IMETHOD SetTitle(const nsAString & aTitle) { return _to SetTitle(aTitle); } \
  81.   NS_IMETHOD GetLang(nsAString & aLang) { return _to GetLang(aLang); } \
  82.   NS_IMETHOD SetLang(const nsAString & aLang) { return _to SetLang(aLang); } \
  83.   NS_IMETHOD GetDir(nsAString & aDir) { return _to GetDir(aDir); } \
  84.   NS_IMETHOD SetDir(const nsAString & aDir) { return _to SetDir(aDir); } \
  85.   NS_IMETHOD GetClassName(nsAString & aClassName) { return _to GetClassName(aClassName); } \
  86.   NS_IMETHOD SetClassName(const nsAString & aClassName) { return _to SetClassName(aClassName); } 
  87.  
  88. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  89. #define NS_FORWARD_SAFE_NSIDOMHTMLELEMENT(_to) \
  90.   NS_IMETHOD GetId(nsAString & aId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
  91.   NS_IMETHOD SetId(const nsAString & aId) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetId(aId); } \
  92.   NS_IMETHOD GetTitle(nsAString & aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
  93.   NS_IMETHOD SetTitle(const nsAString & aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTitle(aTitle); } \
  94.   NS_IMETHOD GetLang(nsAString & aLang) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLang(aLang); } \
  95.   NS_IMETHOD SetLang(const nsAString & aLang) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLang(aLang); } \
  96.   NS_IMETHOD GetDir(nsAString & aDir) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDir(aDir); } \
  97.   NS_IMETHOD SetDir(const nsAString & aDir) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDir(aDir); } \
  98.   NS_IMETHOD GetClassName(nsAString & aClassName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClassName(aClassName); } \
  99.   NS_IMETHOD SetClassName(const nsAString & aClassName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetClassName(aClassName); } 
  100.  
  101. #if 0
  102. /* Use the code below as a template for the implementation class for this interface. */
  103.  
  104. /* Header file */
  105. class nsDOMHTMLElement : public nsIDOMHTMLElement
  106. {
  107. public:
  108.   NS_DECL_ISUPPORTS
  109.   NS_DECL_NSIDOMHTMLELEMENT
  110.  
  111.   nsDOMHTMLElement();
  112.  
  113. private:
  114.   ~nsDOMHTMLElement();
  115.  
  116. protected:
  117.   /* additional members */
  118. };
  119.  
  120. /* Implementation file */
  121. NS_IMPL_ISUPPORTS1(nsDOMHTMLElement, nsIDOMHTMLElement)
  122.  
  123. nsDOMHTMLElement::nsDOMHTMLElement()
  124. {
  125.   /* member initializers and constructor code */
  126. }
  127.  
  128. nsDOMHTMLElement::~nsDOMHTMLElement()
  129. {
  130.   /* destructor code */
  131. }
  132.  
  133. /* attribute DOMString id; */
  134. NS_IMETHODIMP nsDOMHTMLElement::GetId(nsAString & aId)
  135. {
  136.     return NS_ERROR_NOT_IMPLEMENTED;
  137. }
  138. NS_IMETHODIMP nsDOMHTMLElement::SetId(const nsAString & aId)
  139. {
  140.     return NS_ERROR_NOT_IMPLEMENTED;
  141. }
  142.  
  143. /* attribute DOMString title; */
  144. NS_IMETHODIMP nsDOMHTMLElement::GetTitle(nsAString & aTitle)
  145. {
  146.     return NS_ERROR_NOT_IMPLEMENTED;
  147. }
  148. NS_IMETHODIMP nsDOMHTMLElement::SetTitle(const nsAString & aTitle)
  149. {
  150.     return NS_ERROR_NOT_IMPLEMENTED;
  151. }
  152.  
  153. /* attribute DOMString lang; */
  154. NS_IMETHODIMP nsDOMHTMLElement::GetLang(nsAString & aLang)
  155. {
  156.     return NS_ERROR_NOT_IMPLEMENTED;
  157. }
  158. NS_IMETHODIMP nsDOMHTMLElement::SetLang(const nsAString & aLang)
  159. {
  160.     return NS_ERROR_NOT_IMPLEMENTED;
  161. }
  162.  
  163. /* attribute DOMString dir; */
  164. NS_IMETHODIMP nsDOMHTMLElement::GetDir(nsAString & aDir)
  165. {
  166.     return NS_ERROR_NOT_IMPLEMENTED;
  167. }
  168. NS_IMETHODIMP nsDOMHTMLElement::SetDir(const nsAString & aDir)
  169. {
  170.     return NS_ERROR_NOT_IMPLEMENTED;
  171. }
  172.  
  173. /* attribute DOMString className; */
  174. NS_IMETHODIMP nsDOMHTMLElement::GetClassName(nsAString & aClassName)
  175. {
  176.     return NS_ERROR_NOT_IMPLEMENTED;
  177. }
  178. NS_IMETHODIMP nsDOMHTMLElement::SetClassName(const nsAString & aClassName)
  179. {
  180.     return NS_ERROR_NOT_IMPLEMENTED;
  181. }
  182.  
  183. /* End of implementation class template. */
  184. #endif
  185.  
  186.  
  187. #endif /* __gen_nsIDOMHTMLElement_h__ */
  188.